package com.lc.controller;

import com.lc.feign.UserOrderFeign;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Author:LiChuang
 * Date: 2022/8/2 9:46
 */
@RestController
public class UserController {

    @Resource
    private UserOrderFeign userOrderFeign;

    @GetMapping("/getOrder")
    public String getOrder(){
        return userOrderFeign.getUserOrder(1);
    }

}
